package cn.sharp.bbs.service;

import cn.sharp.bbs.entity.BO.CommentDto;
import cn.sharp.bbs.entity.BO.CurrentUser;
import cn.sharp.bbs.entity.BO.ImgResultDto;
import cn.sharp.bbs.entity.BO.PublishArticle;
import cn.sharp.bbs.entity.DO.Img;
import cn.sharp.bbs.entity.DO.PostDto;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.util.List;

/**
 * @author 杨择润
 * @create 2022-07-09 11:13
 */
public interface PostService {
    PublishArticle publishArticle(PublishArticle publishArticle);

    PublishArticle republishArticle(PublishArticle publishArticle);

    void uploadImg(Img img, ImgResultDto imgResultDto, List<MultipartFile> list) throws FileNotFoundException;

    List<PostDto> selectArticle(Long id, String s);

    List<PostDto> selectUserArticle(Long id, String s);

    PostDto selectArticleBypostid(Long id);

    List<CommentDto> getArticlecomment(Long id);


}
